package com.imooc.pan.feignservice;

import com.imooc.pan.core.response.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author Janson
 * @Description 远程接口：用户存储空间修改接口
 * @Date 2023/8/5
 */
@FeignClient(value = "ytupan-gateway",fallbackFactory = UserStorageSizeServiceFallbackFactory.class)
@Component
public interface UserStorageSizeServiceClient {
    
    @GetMapping("/user/updateUserStorageSize")
    public R updateUserStorage(@RequestParam("businessSize") BigDecimal businessSize, @RequestParam("duration") Integer duration);
}
